const express = require('express');
const router = express.Router();
const navigationController = require('../controllers/navigationController');

// 获取左侧导航栏数据
router.get('/', navigationController.getNavigation);

// 添加导航项
router.post('/', express.json(), navigationController.addNavigation);

module.exports = router;
